import { BrowserRouter as Router, useRoutes, } from 'react-router-dom'
import Login from '../pages/login/index'

/**
 * 路由列表
 * **/
const RouterList = () => {
    return useRoutes([
        {
            path: '/login',
            element: <Login></Login>
        }
    ])
}

/**
 * 路由
 * **/
export default () => {
    return (
        <Router>
            <RouterList></RouterList>
        </Router>
    )
}